package com.clouds.wms.service;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.clouds.wms.bean.Cmsml;
import com.clouds.wms.dao.CmsmlDao;
import com.clouds.wms.exception.SysException;
@Service("cmsmlService")
public class CmsmlServiceImpl implements CmsmlService {
	@Resource(name="cmsmlDao")
	private CmsmlDao cmsmlDao;
	@Override
	public List<Cmsml> getCmsmlListByMlab(String mlab) throws SysException {
		return cmsmlDao.getCmsmlListByMlab(mlab);
	}
	public void saveCmsmls(String mlab,List<Cmsml> syseList)throws SysException{
		cmsmlDao.deleteCmsmlListByMlab(mlab);
		cmsmlDao.saveCmsmls(syseList);
	}
}
